package concrete;

public class PlayerFree extends PlayerCondi{
	
	
	private static PlayerCondi INSTANCE = null;
	protected PlayerFree() {
		// Exists to disable instantiation
	}
	
	public static PlayerCondi Instance() {
		if (INSTANCE == null) {
			INSTANCE = new PlayerFree();
		}
		
		return INSTANCE;
	}

	@Override
	public void movePiece(Player player, int spaces) {
		player.updatePosition(spaces);
	}
	
	public void movePiece(Player player, Dice dice) {
		player.updatePosition(dice.getTotalRoll());
	}
	
	
	public String toString() {
		return "PlayerFree";
	}
}
